<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Validform/5.3.2/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/jedate.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>价格设置</title>
    <style>
        .shun td:first-child{text-align: left;padding-left:15px;}
    </style>
</head>
<body data-id="547">
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span>对接平台管理<span class="c-gray en">&gt;</span> 渠道管理 <span class="c-gray en">&gt;</span> 价格设置<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <div id="tab_demo" class="HuiTab">
        <form class="ml-20 mr-20" id="form-search" method="post">
            <div class="tabCon bk-gray bg-1">
                <div class="lh-30 pd-20">
                    <div class="va-m lh-20 f-16 pb-15"><strong class="f-l">价格设置</strong><div class="f-l ml-30 f-12">价格区域：<span id="quyu"></span></div></div>
                    <div class="pt-20 clearfix">
                        <div class="clearfix mb-15 skin-minimal">
                            <label class="f-l pt-5"><span class="c-red pr-5 f-l">*</span><strong>基础价：</strong></label>
                            <div class="radio-box f-l mt-5">

                                <label class="mr-20"><input type="radio" name="radio1" id="a" value="1" onclick="pricess()">售价</label>
                            </div>
                            <div class="radio-box f-l mt-5">

                                <label class="mr-20"><input type="radio" name="radio1" id="b" value="2" onclick="pricess()">批发价</label>
                            </div>
                            <div class="radio-box f-l mt-5">
                                <!--input type="radio">
                                <label class="">签约价</label>-->
                                <label class="mr-20"><input type="radio" name="radio1" id="c" value="3" onclick="pricess()">签约价</label>
                            </div>
                        </div>
                    </div>
                    <div class="pt-20 clearfix">
                        <div class="clearfix mb-15 skin-minimal">
                            <div><strong>调价方式：</strong></div>
                            <div class="ml-20 pt-10">
                                <span class="c-red pr-5 f-l">*</span>
                                <span class="f-l pr-5">折扣率</span>
                                <input type="text" class="input-text f-l" id="zhekou" value="100"   style="width: 100px" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''" autocomplete="off">
                                <span class="f-l pl-5">%</span>
                            </div>
                        </div>
                    </div>
                    <div class="ml-20 pt-10">指定设置<div class="f-r">

                        <a  class="ml-20" id="daoru" onclick="upLoadFile()">导入商品</a>
                        <input id="fileUp" style="display: none" type="file" onchange="putDataToPage()">
                        <a href="" class="ml-20" id="downloadProductExcelTemplate" >下载模板</a>
                        <a  href="" id="lkkk" class="ml-20" onclick="daochu()">导出商品</a>
                    </div>
                    </div>
                    <table class="table_li mb-10 table">
                        <tbody class="text-l">
                            <tr>
                                <td class="col-3-2" colspan="2">
                                        <div class="size-M radius col-xs-8 f-l" style="width:27%">
                                            <div style="position: relative;z-index: 900;">
                                                <input type="text" autocomplete="off" class="input-text radius ww" name="class1" placeholder="请选择一级分类" oninput="goodslistCategory(1)" id="class1" datatype="*0-20" errormsg="格式错误，请重新输入" ignore="ignore">
                                                <ul class="relation radius guanlian" id="classUl1">

                                                </ul>
                                            </div>

                                        </div>
                                        <span class="f-l pl-10 pr-10 pt-5">~</span>
                                        <div class="size-M radius col-xs-8 f-l" style="width:27%">
                                        <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius ww" name="class2" placeholder="请选择二级分类" id="class2" datatype="*0-20" errormsg="格式错误，请重新输入" ignore="ignore">
                                            <ul class="relation radius guanlian" id="classUl2">
                                            </ul>
                                        </div>

                                        </div>
                                        <span class="f-l pl-10 pr-10 pt-5">~</span>
                                        <div class="size-M radius col-xs-8" style="width:27%">
                                        <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius ww"
                                                   name="class3" placeholder="请选择三级分类" id="class3" datatype="*0-20"
                                                   errormsg="格式错误，请重新输入" ignore="ignore">
                                            <ul class="relation radius guanlian" id="classUl3">
                                            </ul>
                                        </div>

                                    </div>
                                </td>
                                <td class="col-3-1">
                                    <div class="f-l" style="margin-left: -44px;">

                                        <div class="formControls col-xs-8 col-sm-6">
                                            <input type="text" class="input-text radius ww" placeholder="请选择品牌" style="width: 119px;" name="moli" onfocus="myfFunction()"  placeholder="" oninput="myfFunction()" id="username" autocomplete="off">
                                            <ul class="relation radius guanlian" id="tudfan">
                                                <li>无数据</li>
                                            </ul>
                                        </div>
                                    </div>
                                    <input class="btn btn-secondary radius size-M f-l" style="margin-left: 30px;" type="button" onclick="detailadd()" value="添加">
                                </td>

                            </tr>
                            <tr>
                                <td class="col-5-1">

                                    <div class="formControls col-xs-7"><input class="input-text radius ww" style="width: 118PX;margin-right: 60px;" type="text" id="spuCode" placeholder="请输入SPU码" autocomplete="off"></div>
                                </td>
                                <td class="col-5-1">

                                    <div class="formControls col-xs-7" style="margin-left: -100px;"><input class="input-text radius ww" style="width: 125px;" type="text" id="skuCode" placeholder="请输入SKU码" autocomplete="off"></div>
                                </td>

                                <td class="col-5-1">
                                    <div class="formControls col-xs-7"><input style="width: 123px;margin-left: -524px;" class="input-text radius ww" type="text" id="helpCode" placeholder="请输入商品助记码" autocomplete="off"></div>
                                </td>
                                <td class="col-5-1">
                                    <div class="formControls col-xs-7"><input style="width: 119px;margin-left: -1020px;" class="input-text radius ww" type="text" id="spuName" placeholder="请输入商品名称" autocomplete="off"></div>
                                </td>

                            </tr>
                        </tbody>
                    </table>
                    <div class="text-c mb-10">
                        <button  class="btn radius size-S btn-secondary" onclick="ditailquery('品类折扣率详情','findproducts.html')">搜索</button><button class="btn radius size-S btn-secondary ml-10" onclick="perceshow()">查询本界面</button><button class="btn radius size-S ml-10" onclick="chong()">重置</button></div>

                </div>
                <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                    <thead>
                    <tr class="text-c">
                        <th style="width:107px;"><input type="checkbox" onclick="stoprop()" value="spu_all" id="spu_all">一级分类名称</th>
                        <th>二级分类名称</th>
                        <th>三级分类名称</th>
                        <th>品牌</th>
                        <th>SPU码</th>
                        <th>产品名称</th>
                        <th>Code码</th>
                        <th>规格名称</th>
                        <th>计量单位</th>
                        <th>调价方式</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody class="shun">

                    </tbody>
                </table>
                <div class="lh-26 pl-20 mt-20" style="margin-left: -4px;">
                    <input type="checkbox" id="pitchAll"  class="checkbox">
                    <span>全选</span>
                    <input type="button" onclick="priceChecked()" class="btn btn-default size-S radius ml-10" value="批量取消">
                    <input type="button" onclick="cancleall()" class="btn btn-default size-S radius ml-10" value="全部取消">
                </div>
                <div class="text-c mb-10 ">

                    <a class="btn btn-secondary radius size-S ml-10" onclick="pircaladd()">保存</a>
                    <button class="btn radius size-S" onclick="colse()">取消</button>

                </div>


            </div>
        </form>
    </div>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../../lib/pagination/pagination.css">
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/Customer/Customer.js?rev=@@hash"></script>
<script src="../../../ht-js/dockingplatform/channel/pricesetting.js?rev=@@hash"></script>

<script>
    $(function () {
        $("#form-search").Validform({
            tiptype: 2,
            callback: function (form) {
               /* reloadSpuTable();*/
                return false;
            }
        });
    });
    condata()
    function condata (){
        jQuery.Huitab =function(tabBar,tabCon,class_name,tabEvent,i){
            var $tab_menu=$(tabBar);
            // 初始化操作
            $tab_menu.removeClass(class_name);
            $(tabBar).eq(i).addClass(class_name);
            $(tabCon).hide();
            $(tabCon).eq(i).show();

            $tab_menu.bind(tabEvent,function(){
                $tab_menu.removeClass(class_name);
                $(this).addClass(class_name);
                var index=$tab_menu.index(this);
                $(tabCon).hide();
                $(tabCon).eq(index).show()}
            )}
    }
    //页面返回刷新局部数据
    function conterww() {
        $('.ww').val('')
        perceshow()
        $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click","0")
    }
    $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click","0");

function chong() {
    $('.ww').val('')
}
    function colse() {
        parent.layer.closeAll();
    }

</script>
</body>
</html>